package indi.yuluo.Enum;

import org.springframework.stereotype.Component;

/**
 * @Author: yuluo
 * @CreateTime: 2022-08-17  10:28
 * @Description: 判题结果枚举类
 */

public enum Status {

    STATUS_NOT_SUBMITTED("未提交", -10),

    STATUS_SUBMITTING("提交中", 9),

    STATUS_PENDING("排队中", 6),

    STATUS_JUDGING("评测中" ,7),

    STATUS_COMPILE_ERROR("编译错误", -2),

    STATUS_PRESENTATION_ERROR("输出格式错", -3),

    STATUS__WRONG_ANSWER("答案错误", -3),

    STATUS_ACCEPTED("评测通过", 0),

    STATUS__CPU_TIME_LIMIT_EXCEEDED("cpu时间超限", 1),

    STATUS__REAL_TIME_LIMIT_EXCEEDED("真实时间超限", 2),

    STATUS__MEMORY_LIMIT_EXCEEDED("空间超限", 3),

    STATUS__RUNTIME_ERROR("运行错误", 4),

    STATUS__SYSTEM_ERROR("系统错误", 5),

    STATUS_PARTIAL_ACCEPTED("OI评测部分通过", 8),

    STATUS_SUBMITTED_FAILED("提交失败", 10);

    private final String status;

    private final Integer statusCode;

    Status(String status, Integer statusCode) {
        this.status = status;
        this.statusCode = statusCode;
    }

    public String getStatus() {
        return status;
    }

    public Integer getStatusCode() {
        return statusCode;
    }
}
